package cn.iocoder.yudao.module.eval.convert.profession;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.eval.controller.admin.profession.vo.EvalProfessionRespVO;
import cn.iocoder.yudao.module.eval.controller.admin.profession.vo.EvalProfessionSaveReqVO;
import cn.iocoder.yudao.module.eval.dal.dataobject.profession.EvalProfessionDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 职业工种 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface EvalProfessionConvert {

    EvalProfessionConvert INSTANCE = Mappers.getMapper(EvalProfessionConvert.class);

    @Mapping(target = "approvalStatus", ignore = true)
    @Mapping(target = "filingDate", ignore = true)
    @Mapping(target = "approvalDate", ignore = true)
    @Mapping(target = "approvalComments", ignore = true)
    @Mapping(target = "documents", ignore = true)
    EvalProfessionDO convert(EvalProfessionSaveReqVO bean);

    EvalProfessionRespVO convert(EvalProfessionDO bean);

    List<EvalProfessionRespVO> convertList(List<EvalProfessionDO> list);

    PageResult<EvalProfessionRespVO> convertPage(PageResult<EvalProfessionDO> page);

}
